<?php
namespace app\controllers;

use app\filters\ParamAuth;
use yii\helpers\ArrayHelper;
trait NeedUser
{
    public function behaviors() {
        return ArrayHelper::merge(parent::behaviors(), [
            'access' => [
                'class' => ParamAuth::className(),
            ],
        ]);
    }
}

?>